package cn.xny.org.mapper;

import cn.xny.org.domain.Shop;
import cn.xny.basic.mapper.BaseMapper;
import cn.xny.org.dto.ShopDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2023-02-04
 */
public interface ShopMapper extends BaseMapper<Shop> {
   //校验店铺名字与店铺地址
    Shop findByNameAddAddress(Shop shop);
   //修改状态
    void updateState(@Param("state") Integer state,@Param("shopId") Long shopId);

    List<ShopDto> getCountByState();
}
